<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>广东国防教育学会</title>
		<meta name="viewport" content="initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.min.css" />
		<link rel="stylesheet" href="http://idangero.us/swiper/dist/css/swiper.min.css" />
		<link rel="stylesheet" href="/Public/Home/activity/css/style.css" />
	</head>
	<body>

		<!--菜单start-->
	<nav class="bar bar-tab">
			<a class="tab-item open-indicator <?php if($active == 'home'): ?>active<?php endif; ?>"  href="/">
				<span class="icon icon-home"></span>
				<span class="tab-label">首页</span>
			</a>
			<a class="tab-item open-indicator" href="<?php echo U('Apply/apply');?>">
				<span class="icon iconfont icon-category"></span>
				<span class="tab-label">师资</span><!--专家预约-->
			</a>
			<a class="tab-item open-indicator" <?php if($active == 'user_company'): ?>active<?php endif; ?>" href="<?php echo U('UserCompany/index');?>">
				<span class="icon iconfont icon-huiyuan1"></span>
				<span class="tab-label">机构</span><!--会员单位-->
			</a>
			<a class="tab-item open-indicator <?php if($active == 'user'): ?>active<?php endif; ?>"   href="<?php echo U('Serve/serve_index');?>">
				<span class="icon iconfont icon-account"></span>
				<span class="tab-label">保障</span><!--我的-->
			</a>
		</nav>
		<!--菜单end-->
		<div class="content">
			<!--分类start-->

			<div class="buttons-tab screen mechanism-tab clearfix" style="margin-top:10px;" id="mechanism-tab">
				<?php if(is_array($categoryList)): $i = 0; $__LIST__ = $categoryList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><a href="#tab<?php echo ($i); ?>" style="display:inline-block;width: 4.5rem;" class="tab-link button"><img src="<?php echo ($v['ico_img']); ?>" ><?php echo ($v['name']); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
				
				<!--<span class="tab-link button active">爱国主义教育2</span>style="margin-top:10px;"-->
			</div>

			<!--修改-->

			<!--分类end-->

			<!--基地start-->
			<div class="tabs">
				<div class="in_hot_box activity_1 tab hotel_list active" id="tab1">
					<?php if(is_array($base1)): $i = 0; $__LIST__ = $base1;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$base1): $mod = ($i % 2 );++$i;?><div class="card demo-card-header-pic">
						<a href="<?php echo U('Serve/base_detail',array('base_id'=>$base1['id']));?>">
						<div valign="bottom" class="card-header color-white no-border no-padding">
							<img class='card-cover' src="<?php echo ($base1['smallimage']); ?>" alt="">
						</div>
						<div class="card-content">
							<div class="card-content-inner">
								<p class="hot_list_title"><?php echo ($base1['base_name']); ?></p>
								<p class="service color-gray" style="width: 210px;"><i class="iconfont icon-map"></i><?php echo ($base1['address']); ?></p>
								<p class="color-gray">
									<span><i class="iconfont icon-phone"></i><?php echo ($base1['mobile']); ?></span>
									<span style="position: absolute;top: initial;right: 0;" class="price"><?php echo ($base1['money']); ?>起</span>
								</p>
							</div>
						</div>
						</a>
					</div><?php endforeach; endif; else: echo "" ;endif; ?>
					<!--<div class="card demo-card-header-pic">
						<a href="hotel.html">
						<div valign="bottom" class="card-header color-white no-border no-padding">
							<img class='card-cover' src="/Public/Home/activity/img/raw_1499911304.jpeg" alt="">
						</div>
						<div class="card-content">
							<div class="card-content-inner">
								<p class="hot_list_title">广州XX基地</p>
								<p class="service color-gray">如果你无法简洁的表达你的想法，那只说明你还不够了解它。</p>
								<p class="color-gray"><span><i class="iconfont icon-map"></i>天河</span><span><i class="iconfont icon-phone"></i>020-38686868</span><span class="price">328起</span></p>
							</div>
						</div>
						</a>
					</div>
					<div class="card demo-card-header-pic">
						<a href="hotel.html">
						<div valign="bottom" class="card-header color-white no-border no-padding">
							<img class='card-cover' src="/Public/Home/activity/img/raw_1499911304.jpeg" alt="">
						</div>
						<div class="card-content">
							<div class="card-content-inner">
								<p class="hot_list_title">广州XX基地</p>
								<p class="service color-gray">如果你无法简洁的表达你的想法，那只说明你还不够了解它。</p>
								<p class="color-gray"><span><i class="iconfont icon-map"></i>天河</span><span><i class="iconfont icon-phone"></i>020-38686868</span><span class="price">328起</span></p>
							</div>
						</div>
						</a>
					</div>-->
				</div>


				<div class="in_hot_box activity_1 tab hotel_list" id="tab2">
					<?php if(is_array($base2)): $i = 0; $__LIST__ = $base2;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$base2): $mod = ($i % 2 );++$i;?><div class="card demo-card-header-pic">
						<a href="<?php echo U('Serve/base_detail',array('base_id'=>$base2['id']));?>">
							<div valign="bottom" class="card-header color-white no-border no-padding">
								<img class='card-cover' src="<?php echo ($base2['smallimage']); ?>" alt="">
							</div>
							<div class="card-content">
								<div class="card-content-inner">
									<p class="hot_list_title"><?php echo ($base2['base_name']); ?></p>
									<p class="service color-gray" style="width: 210px;"><i class="iconfont icon-map"></i><?php echo ($base2['address']); ?></p>
									<p class="color-gray">
										<span><i class="iconfont icon-phone"></i><?php echo ($base2['mobile']); ?></span>
										<span style="position: absolute;top: initial;right: 0;" class="price"><?php echo ($base2['money']); ?>起</span>
									</p>
								</div>
							</div>
						</a>
					</div><?php endforeach; endif; else: echo "" ;endif; ?>
				</div>  


				<div class="in_hot_box activity_1 tab hotel_list" id="tab3">
					<?php if(is_array($base3)): $i = 0; $__LIST__ = $base3;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$base3): $mod = ($i % 2 );++$i;?><div class="card demo-card-header-pic">
						<a href="<?php echo U('Serve/base_detail',array('base_id'=>$base3['id']));?>">
							<div valign="bottom" class="card-header color-white no-border no-padding">
								<img class='card-cover' src="<?php echo ($base3['smallimage']); ?>" alt="">
							</div>
							<div class="card-content">
								<div class="card-content-inner">
									<p class="hot_list_title"><?php echo ($base3['base_name']); ?></p>
									<p class="service color-gray" style="width: 210px;"><i class="iconfont icon-map"></i><?php echo ($base3['address']); ?></p>
									<p class="color-gray">
										<span><i class="iconfont icon-phone"></i><?php echo ($base3['mobile']); ?></span>
										<span style="position: absolute;top: initial;right: 0;" class="price"><?php echo ($base3['money']); ?>起</span>
									</p>
								</div>
							</div>
						</a>
					</div><?php endforeach; endif; else: echo "" ;endif; ?>
				</div>


				<div class="in_hot_box activity_1 tab hotel_list" id="tab4">
					<?php if(is_array($base4)): $i = 0; $__LIST__ = $base4;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$base4): $mod = ($i % 2 );++$i;?><div class="card demo-card-header-pic">
						<a href="<?php echo U('Serve/base_detail',array('base_id'=>$base4['id']));?>">
							<div valign="bottom" class="card-header color-white no-border no-padding">
								<img class='card-cover' src="<?php echo ($base4['smallimage']); ?>" alt="">
							</div>
							<div class="card-content">
								<div class="card-content-inner">
									<p class="hot_list_title"><?php echo ($base4['base_name']); ?></p>
									<p class="service color-gray" style="width: 210px;"><i class="iconfont icon-map"></i><?php echo ($base4['address']); ?></p>
									<p class="color-gray">
										<span><i class="iconfont icon-phone"></i><?php echo ($base4['mobile']); ?></span>
										<span style="position: absolute;top: initial;right: 0;" class="price"><?php echo ($base4['money']); ?>起</span>
									</p>
								</div>
							</div>
						</a>
					</div><?php endforeach; endif; else: echo "" ;endif; ?>
				</div>
			</div>
			<!--基地start-->
		</div>

		<script type="text/javascript" src="http://g.alicdn.com/sj/lib/jquery/dist/jquery.min.js"></script>
		<script type='text/javascript' src='http://g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
		<script type='text/javascript' src='http://g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>

		<!--城市选择结束-->

		<script src="http://idangero.us/swiper/dist/js/swiper.min.js"></script>
		<script type="text/javascript" src="/Public/Home/activity/js/huodon.js" ></script>
		<script>
			var swiper = new Swiper('.swiper-container', {
				pagination: '.swiper-pagination',
				paginationClickable: true
			});
			window.onload=function(){
			var oTab=document.getElementById("mechanism-tab")
			var oTabLi=oTab.getElementsByTagName("a");
			var Width=oTabLi.length*5+"rem";
			oTab.style.width=Width
		}
		</script>
	</body>
</html>

<script>
	$(document).ready(function () {
        $("#mechanism-tab").find('a').eq(0).addClass('active');
    })
</script>